/**
 * WebsiteExitModal 网站跳转确认弹窗样式
 * 提供安全警告和广告展示的样式
 */

.website-exit-modal .modal-container {
  max-width: 560px;
}

.exit-modal-content {
  padding: 0;
}

/* 弹窗头部 */
.exit-modal-header {
  text-align: center;
  padding: 24px 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.warning-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.exit-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #262626;
}

/* 目标网站信息 */
.target-website-info {
  padding: 20px 24px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.website-basic-info {
  text-align: center;
}

.website-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.website-url {
  margin: 0 0 8px;
  font-size: 14px;
  color: #8c8c8c;
  word-break: break-all;
}

.website-description {
  margin: 0;
  font-size: 14px;
  color: #595959;
  line-height: 1.5;
}

/* 安全警告区域 */
.security-warning {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.warning-content {
  text-align: center;
}

.warning-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: #ff4d4f;
  line-height: 1.5;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  padding: 12px;
}

/* 安全检测状态 */
.security-check {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 6px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.checking-status,
.check-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #52c41a;
}

/* 加载动画 */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f0f0f0;
  border-top: 2px solid #52c41a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.check-icon {
  color: #52c41a;
  font-weight: bold;
}

/* 免责声明区域 */
.disclaimer-section {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.disclaimer-link,
.report-link {
  font-size: 14px;
  color: #1890ff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.disclaimer-link:hover,
.report-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* 举报表单 */
.report-form {
  padding: 16px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.report-form h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.report-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 12px;
}

.report-form textarea:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 广告Banner区域 */
.banner-ads {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.ads-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  text-align: center;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ad-card {
  display: flex;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ad-card:hover {
  border-color: #40a9ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-card img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}

.ad-content {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ad-content h5 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: #262626;
  line-height: 1.3;
}

.ad-content p {
  margin: 0;
  font-size: 11px;
  color: #8c8c8c;
  line-height: 1.3;
}

/* 操作按钮区域 */
.exit-modal-actions {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.exit-modal-actions .btn {
  min-width: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .website-exit-modal .modal-container {
    max-width: 100%;
    margin: 0;
  }
  
  .exit-modal-header {
    padding: 20px 0 12px;
  }
  
  .warning-icon {
    font-size: 40px;
    margin-bottom: 8px;
  }
  
  .exit-modal-title {
    font-size: 18px;
  }
  
  .target-website-info,
  .security-warning,
  .banner-ads,
  .exit-modal-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .disclaimer-section {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .ads-grid {
    grid-template-columns: 1fr;
  }
  
  .ad-card img {
    width: 80px;
    height: 60px;
  }
  
  .ad-content {
    padding: 12px;
  }
  
  .ad-content h5 {
    font-size: 14px;
  }
  
  .ad-content p {
    font-size: 12px;
  }
} 